package com.fh.config;


import com.fh.model.vo.ShoppingCartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "stock-query",fallback = OrderaddClientFallback.class)
public interface OrderaddClient {

    @GetMapping("stockquery/select")
    public List<ShoppingCartVO> queryStock(@RequestParam("list") List<Integer> list);

}
